package com.g3.zoosite.controller;


import com.g3.zoosite.model.DwAnimalRescue;
import com.g3.zoosite.model.DwPlaceScenery;
import com.g3.zoosite.service.IDwPlaceSceneryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 园内风光信息表 前端控制器
 * </p>
 *
 * @author admin
 * @since 2021-09-28
 */
@Api(tags = "园内风光信息接口")
@Slf4j  //日志打印
@RestController
@RequestMapping("/zoosite/dwPlaceScenery")
public class DwPlaceSceneryController {

    @Autowired
    private IDwPlaceSceneryService iDwPlaceSceneryService;

    /**
     * 查询全部园内风光信息
     * @return
     */
    @GetMapping
    @ApiOperation("查询全部园内风光信息")
    public List<DwPlaceScenery> getList(){
        log.info("-------查询全部-------");
        List<DwPlaceScenery> list = iDwPlaceSceneryService.list();
        return list;
    }

}
